<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Company extends CI_Controller {

	function __construct()
	{
		parent::__construct();
	}
	
	function index() {
		
	}
	
	function view($id) {
		$this->load->model('Company_model');
		$this->load->model('Job_model');
		
		foreach ($this->Company_model->get_company_by_id($id) as $key=>$value)
			$data[$key]=$value;
			
		foreach ($this->Job_model->get_job_by_company_id($id) as $key=>$value)
			$posts[$key]=$value;
		
		$data['posts'] = $posts;
		$this->load->view('company_profile',$data);
	}
}
